package mvp.com.bbc.rcjavaretrofitdaggermvp.model;

import io.reactivex.Observable;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.BaseApplication;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.apiUrl.ApiUrl;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.contact.InfoContact;

/**
 * Created by ${cbf} on 2017/11/27.
 */

public class InfoAddMode implements InfoContact.InfoAddMode {
    @Override
    public Observable<String> infoAddMode(String userid, String content) {
        ApiUrl.getInfoAddData addData = BaseApplication.getRetrofit().create(ApiUrl.getInfoAddData.class);
        Observable<String> observable = addData.infoAddData(userid, content);
        return observable;
    }
}
